﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="jquery.autocomplete.css" rel="stylesheet" />
    <script src="jquery.1.8.3.js"></script>
    <script src="jquery.autocomplete.js"></script>
</head>
<body>
    <input type="text" id="txt_auto" autocomplete="off" />
</body>
</html>
<script type="text/javascript">
    $(function () {
        var data = [];
        for (var i = 0; i < 100; i++) {
            if (i % 2 == 0) {
                data.push("a_" + i);
            }
            if (i % 3 == 0) {
                data.push("b_" + i + "a");
            }
            if (i % 4 == 0) {
                data.push("c_" + i);
            }
        }
        $("#txt_auto").autocomplete(data);
    })
</script>
